/**
 * @Author: Your name
 * @Date:   2024-03-08 11:50:20
 * @Last Modified by:   Your name
 * @Last Modified time: 2024-03-08 11:50:23
 */
// api.routes.ts  
import express from 'express';
import { AppController } from './app.controller';

const appController = new AppController();
const router = express.Router();

// 定义路由，当访问 /api/data 时调用 appController 的 getData 方法  
router.get('/api/data', appController.getData);

export default router;